<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	Locale locale = request.getLocale();
	Calendar calendar = Calendar.getInstance(locale);
	int hour = calendar.get(Calendar.HOUR_OF_DAY);
	String greeting = "";
	if(hour <= 6){
		greeting = "该睡觉了";
	}else if(hour <= 6){
		greeting = "早上好";
	}else if(hour <= 12){
		greeting = "上午好";
	}else if(hour <= 18){
		greeting = "下午好";
	}else if(hour <= 24){
		greeting = "该睡觉了";
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>『海天一色』</title>
<link rel="stylesheet" type="text/css" href="jquery-easyui-1.3.4/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="jquery-easyui-1.3.4/themes/icon.css" />
<script type="text/javascript" language="javascript" src="jquery-easyui-1.3.4/jquery-1.10.2.min.js"></script>
<script type="text/javascript" language="javascript" src="jquery-easyui-1.3.4/jquery.easyui.min.js"></script>
<script type="text/javascript" language="javascript" src="jquery-easyui-1.3.4/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript">
var YM = function(){
	
};
YM.prototype = {
		version : "v1.0",
		init : function(){
			var ok = "初始化完毕！";
			alert(ok);
		}
};
var oHtml = document.documentElement;
var oHead = oHtml.firstChild;
var oBody = oHtml.lastChild;

	$(function(){
		//alert(oHead.outerHTML);
		//alert(oBody.innerHTML);
	});
</script>
</head>
<body>
<%= greeting %>
</body>
</html>